import { BaseComponent } from "../type";

export interface PopupOptions<Content = string | BaseComponent> {
	/** 标题 */
	title: string;
	/** 宽度 */
	width?: string;
	/** 内容 */
	content?: string | BaseComponent;
	/** 点击确认按钮的操作 */
	confirm?: (content: Content) => void;
	/** 点击取消按钮的操作 */
	cancel?: (content: Content) => void;
	/** 确认按钮文字 */
	confirmText?: string;
	/** 取消按钮文字 */
	cancelText?: string;
}
export interface PopupRnderEvent extends PopupEvent {
	repaint(): void;
}
export interface PopupEvent {
	shutDown(): void;
}
